﻿using TxtManager.Core.Entities;
using TxtManager.Core.Repository;

namespace TxtManager.Core.Interfaces;

public interface ITextRepository : IRepository<TextItem, int>
{
    Task<IEnumerable<TextItem>> SearchByKeywordAsync(int pageIndex, int pageSize,string keyword);
    Task UpdateTagsAsync(int id, string newTag);


    Task<int> CountTextItemsAsync(string keyword);
}